#ifndef _DFU_UPDATE_H
#define _DFU_UPDATE_H

#define SZ_256	256
#define SZ_16	16  /* 一个odf机架上有几个框,当前最大16个框 */
#define SZ_6	6	/* 一个框里最大有几个盘，当前最大6个盘 */

#define SERVICE_READY 		220
#define NEED_PASSWORD 		331
#define LOGIN_SUCS 			230
#define CONTROL_CLOSE		221
#define PATHNAME_CREATE 	257
#define PASV_MODE 			227
#define NO_SUCH_FILE 		550 
#define DOWN_READY   		125

#define QUIT 				7

#define FTP_ERROR			1

struct DFU_UPDATE{
   uint16_t port;
	uint8_t username[SZ_256];
	uint8_t password[SZ_256];
	uint8_t filename[SZ_256];
	uint8_t filepath[SZ_256];
	uint8_t fversion[SZ_256];
	uint8_t serverip[SZ_6];
};


#endif 

